package com.elephant.bean.selfBeanFactoryPostProcessor;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.stereotype.Component;

/**
 * @author 林
 * @create 2025-05-28 16:57
 */
public class Teacher implements DeferredImportSelector,DeferredImportSelector.Group {
	private String name;


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Teacher(String name) {
		this.name = name;
	}

	public Teacher() {
	}

	@Override
	public void process(AnnotationMetadata metadata, DeferredImportSelector selector) {
		System.out.println("实现了DeferredImportSelector接口中的内部接口Group,调用process，" +
				"springBoot调用自动装配的入口就是实现了这个接口才可以进来的");
	}

	@Override
	public Iterable<Entry> selectImports() {
		return null;
	}

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		return new String[0];
	}
}
